import 'package:flutter/material.dart';
import 'package:my_app/app/core/theme/app_colors.dart';
import 'package:my_app/app/core/theme/app_text_theme.dart';

///
///自定义标题组件
///
class CustomTitleWidget extends StatelessWidget {
  final String title;
  const CustomTitleWidget({super.key, required this.title});

  @override
  Widget build(BuildContext context) {
    return Row(
      crossAxisAlignment: CrossAxisAlignment.center,
      children: [
        Container(
          width: 4.0,
          height: 16.0,
          decoration: BoxDecoration(
            borderRadius: BorderRadius.circular(10.0),
            color: textContentColor,
          ),
        ),
        SizedBox(width: 4.0),
        Text(
          title,
          style: contentText,
        )
      ],
    );
  }
}
